package com.foreknow.proxy;

public class Test {

    public static void main(String[] args) {
        Dog target = new DogImlp();
        Object proxy = MyProxyFactory.getProxy(target);
        Dog dog = null;
        if(proxy instanceof Dog){
              dog = (Dog) proxy;
              dog.info();
              dog.run();
        }

    }
}
